Skip to main content link. Accesskey S
  • Help
  • HCL Logo
  • HCL Notes and Domino Application Development wiki
  • THIS WIKI IS READ-ONLY. Individual names altered for privacy purposes.
  • HCL Forums and Blogs
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • API Documentation
Search
API Documentation > XPages Extensibility API > Using an XPages Library in Designer
  • Share Show Menu▼
  • Subscribe Show Menu▼

Recent articles by this author

XPages 'compositeData' not found

The custom control auto-remove functionality will sometimes result in "'compositeData' not found" error pages.

XPages configuration file format page 5

Other tag definitions. Page 5 of the article on the XPages tag definition format.

XPages configuration file format page 4

Defining complex-type tags. Page 4 of the article on the XPages configuration file format.

XPages configuration file format page 3

Defining properties. Page 3 of the article on the XPages configuration file format.

XPages configuration file format page 2

Defining control tags. Page 2 of the article on the XPages configuration file format.
Community articleUsing an XPages Library in Designer
Added by ~Fred Ektumilitetsi | Edited by IBM contributor~Sanjay Eklutherettu on September 21, 2010 | Version 14
  • Actions Show Menu▼
expanded Abstract
collapsed Abstract
An XPages library is a packaged plugin containing extended controls. This article shows you step-by-step how to install XPages libraries into Domino Designer and create applications using the new controls.
Tags: XPages, 8.5.2
ShowTable of Contents
HideTable of Contents
  • 1 Introduction
  • 2 Enable plugin install
  • 3 Install the update site
  • 4 Create an application using the library control
  • 5 Preview in Notes
  • 6 Preview in Web Browser

Introduction


This article is part of the XPages Extensibility API Developers Guide.

An XPages library is a packaged plugin containing extended controls to be added to the Domino Designer palette, the runtime functionality for those controls and any other extensions to the XPages runtime.

This article shows you step-by-step (with screenshots) how to install XPages libraries into Domino Designer and create applications using the new controls.

Enable plugin install


The first time you install any XPages library, you will need to enable the Install menu item in Domino Designer.
In the menu bar, select File - Preferences - "Domino Designer" and enable the check box "Enable Eclipse plugin install".

Enable plugin install

If the check box is not present, this is because the Domino administrator has configured a policy setting for the Notes Client to prevent installing plugins.

Install the update site


In the menu bar, select File - Application - Install... - "Search for new features to install" - Next.

If you have built the update site:
Select "Add Folder Location..." and browse to the update site.
If the update site is shared on a web server:
Select "Add Remote Location..." and enter the update site's URL.

Add install location

Toggle open the install location and select the feature to install.

Select feature to install

Select Next, accept the license agreement and Finish.

Install plugin

You will get a warning about installing an unsigned feature, select "Install this plugin" and OK.

Restart domino designer

When Domino Designer prompts whether you want to restart, select "Restart Now".

To verify that the feature has installed, select File - Application - "Application Management...". It can also be uninstalled from that dialog.

Verify install

To install later versions of the same plugin, use the Install dialog. However, the option "Search for updates of the currently installed features" doesn't seem to work so just use the "Search for new features to install" option again.

Create an application using the library control


Create a new application and XPage. In the Controls Palette, select "Other...".
Under "Extended Controls", select "Example Control" and OK.

Add control to XPage

You will be prompted with a dialog asking whether you want to make this application depend on the library. Select Continue.

Add dependency

To view this dependency, open "Application Properties" and select the Advanced tab. Under the "XPage Libraries" section, the library's check box should be enabled.

View dependency

With this enabled, the application will give an error if you attempt to run it in an environment where the library is not present.
If the library is not present on the Domino Server or the Notes Client when you attempt to run the application, you will get the following error.
Unexpected runtime error
The runtime has encountered an unexpected error.
Exception
Cannot find the library com.example.library required by the application.

Preview in Notes


The Notes Client preview will work because you have manually installed the library into this Domino Designer install. You can use this preview for testing but your end users will use a different mechanism for installing the application into the Notes Client.

For end users, the library will be installed through the Widget Catalog. This is described in the article "Deploying XPages Libraries".

Preview in Web Browser


In the absence of a Domino Server, it is possible to preview XPages in a web browser. However, any libraries that the application depends on must be deployed to the Notes Client install location under the directory:
"\data\domino\workspace\applications\eclipse"

The library's features and plugins must be copied into the respective directories under this path.

  • Actions Show Menu▼


expanded Attachments (9)
collapsed Attachments (9)
Edit the article to add or modify attachments.
File TypeSizeFile NameCreated OnDelete file
image/jpeg 17 KB viewDep.jpg 8/6/10, 8:08 AM
image/jpeg 30 KB addControl.jpg 8/6/10, 8:08 AM
image/jpeg 17 KB addDep.jpg 8/6/10, 8:08 AM
image/jpeg 57 KB addInstallLocn.jpg 8/6/10, 8:08 AM
image/jpeg 61 KB enableInstall.jpg 8/6/10, 8:08 AM
image/jpeg 34 KB installPlugin.jpg 8/6/10, 8:08 AM
image/jpeg 11 KB restart.jpg 8/6/10, 8:08 AM
image/jpeg 43 KB selectFeature.jpg 8/6/10, 8:08 AM
image/jpeg 35 KB verifyInstall.jpg 8/6/10, 8:08 AM
expanded Versions (14)
collapsed Versions (14)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (14)Sep 21, 2010, 1:15:31 PM~Sanjay Eklutherettu  IBM contributor
13Aug 20, 2010, 10:20:28 AM~Phil Fezhipivitchader  IBM contributor
12Aug 6, 2010, 8:17:28 AM~Phil Fezhipivitchader  IBM contributor
11Jun 9, 2010, 11:12:55 AM~Sean Reresongon  IBM contributor
10May 21, 2010, 1:20:35 PM~Sean Reresongon  IBM contributor
9May 21, 2010, 9:26:52 AM~Lex Feztookonyikle  IBM contributor
8May 21, 2010, 9:14:16 AM~Lex Feztookonyikle  IBM contributor
7May 20, 2010, 5:47:50 PM~Olga Minfreepuloni  IBM contributor
6May 20, 2010, 5:42:52 PM~Olga Minfreepuloni  IBM contributor
5May 20, 2010, 5:41:23 PM~Olga Minfreepuloni  IBM contributor
4May 20, 2010, 3:31:19 PM~Sean Reresongon  IBM contributor
3May 19, 2010, 5:03:22 PM~Lex Feztookonyikle  IBM contributor
2May 19, 2010, 5:00:06 PM~Lex Feztookonyikle  IBM contributor
1May 19, 2010, 1:14:25 PM~Elizabeth Cisboosiburakol  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedAbout
  • HCL Software
  • HCL Digital Solutions community
  • HCL Software support
  • BlogsDigital Solutions blog
  • Community LinkHCL Software forums and blogs
  • About HCL
  • Privacy
  • Accessibility